package com.tuozixuan.spring6.validation.method4;

import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

@Service
@Validated
public class MyService4 {

	public String testParams(@NotNull @Valid User user) {
		return user.toString();
	}
}
